package com.llmcu.graphic.designpatterns.interpreter;

import java.util.Objects;

public class ProgramNode extends Node {

    private CommandListNode commandListNode;
    public static final String TOKEN = "program";

    @Override
    public void parse(Context context) {
        context.skip(TOKEN);
        commandListNode = new CommandListNode();
        commandListNode.parse(context);

    }

    @Override
    public String toString() {
        return "[program " +
                commandListNode +
                " ]";
    }
}
